exports.install = function(Vue, options) {
	Vue.prototype.numberFormatter = (num, decimals = 2) => {
		num = num ? num : 0
		num = parseFloat(num).toFixed(decimals)
		return num.toString().replace(/\d+/, function(n) {
			// 先提取整数部分
			return n.replace(/(\d)(?=(\d{3})+$)/g, function($1) {
				// 对整数部分添加分隔符
				return $1 + ','
			})
		})
	};
};